package com.aliang.frame.repository;

import com.aliang.frame.domain.Dept;
import com.aliang.frame.viewmodel.admin.dept.DeptPageRequestVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept>{
    List<Dept> selectList(DeptPageRequestVM requestVM);

    List<Dept> selectByCurrentUser(@Param("currentUserDeptId") Integer currentUserDeptId);

    List<Dept> selectAllDept();
}
